﻿#include "user.h"

User::User(const QString& username, const QString& password, const User::Authority& authority)  //
    : username_(username),
      password_(password),
      authority_(authority) {}

QString User::username() const { return username_; }

void User::setUsername(const QString& username) { username_ = username; }

QString User::password() const { return password_; }

void User::setPassword(const QString& password) { password_ = password; }

User::Authority User::authority() const { return authority_; }

void User::setAuthority(const Authority& authority) { authority_ = authority; }
